package com.forum.common.model.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;



@Data
public class CommentDTO {
    @NotNull(message = "帖子ID不能为空")
    private Long postId;

    @NotNull(message = "用户ID不能为空")
    private Long userId;

    private Long parentId;

    @NotBlank(message = "评论内容不能为空")
    @Size(min = 1, max = 500, message = "评论内容长度必须在1-500个字符之间")
    private String content;
} 